a_string = "Hello "+"World "+"Python"#+拼接
print(a_string)#Hello World Python

b_string = ".".join(["Hello","World","Python"])#join函数拼接
print(b_string)#Hello.World.Python

bar = "\u2589"
c_string = "[" + bar*4 + "-"*6 + "]" + "进度为40%"# bar*a 表示bar重复a次
print(c_string)#[▉▉▉▉------]进度为40%

d_dict = {"anxin":"1","anla":"2","anran":"3"}
print(d_dict)
arr_string = []#初始化字符串组
for (a,b) in d_dict.items():
    arr_string.append(a+"="+b)#使用append在字符串组arr_string末尾添加
print(arr_string)
print(arr_string[1])
new_string = "&".join(arr_string)
print(new_string)


e_string = "py""thon"#自动拼接
print(e_string)











